Pos

interface Pos : Supplier<Int>

Defines the mutable position of something

Author

fzzyhmstrs

Since

0.2.0

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun dec(amount: Int)

Decrements this position by the given amount

Link copied to clipboard
open operator fun div(other: Pos): Int
Link copied to clipboard
abstract override fun get(): Int

Returns the position of this pos

Link copied to clipboard
abstract fun inc(amount: Int)

Increments this position by the given amount

Link copied to clipboard
open operator fun minus(other: Pos): Int
Link copied to clipboard
open operator fun plus(other: Pos): Int
Link copied to clipboard
open operator fun rem(other: Pos): Int
Link copied to clipboard
abstract fun set(new: Int)

Sets the position of this pos

Link copied to clipboard
open operator fun times(other: Pos): Int